<template>
  <div class="content">
    <div class="main">
      <h3 class="heading">MEDICAL RECORD</h3>
      <div class="container">
        <ul>
          <li>
            <h3 class="title">FontEnd DEVELOPER</h3>
            <p>Medical Review is a peer reviewed open access journal affiliate to Peking University Health Science Center</p>
            <a href="#">Read More</a>
            <span class="circle"></span>
            <span class="date">2023-06-06 15:46:36</span>
          </li>
          <li>
            <h3 class="title">FontEnd DEVELOPER</h3>
            <p>Medical Review is a peer reviewed open access journal affiliate to Peking University Health Science Center</p>
            <a href="#">Read More</a>
            <span class="circle"></span>
            <span class="date">2023-06-06 15:46:36</span>
          </li>
          <li>
            <h3 class="title">FontEnd DEVELOPER</h3>
            <p>Medical Review is a peer reviewed open access journal affiliate to Peking University Health Science Center</p>
            <a href="#">Read More</a>
            <span class="circle"></span>
            <span class="date">2023-06-06 15:46:36</span>
          </li>
          <li>
            <h3 class="title">FontEnd DEVELOPER</h3>
            <p>Medical Review is a peer reviewed open access journal affiliate to Peking University Health Science Center</p>
            <a href="#">Read More</a>
            <span class="circle"></span>
            <span class="date">2023-06-06 15:46:36</span>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
    export default {
        name: "index"
    }
</script>

<style scoped>
  .content{
    width: 100%;
    height: 100%;
    padding: 20px;
  }
  .main{
    width: 100%;
    height: auto;
    background-color: rgb(245,245,245);
    font-family: Helvetica;
    padding: 50px 0;
    display: grid;
    place-items: center;
  }
  .main .heading{
    font-size: 27px;
    font-weight: 500;
    color: rgb(103,3,236);
    position: relative;
    margin-bottom: 80px;
  }
  .heading::after{
    position: absolute;
    content: ' ';
    width: 50%;
    height: 4px;
    left: 50%;
    bottom: -5px;
    background-image: linear-gradient(to right, rgb( 106, 6, 236),rgb( 220, 0, 240));
    transform: translateX(-50%);
  }

  .container{
    width: 70%;
    height: auto;
    position: relative;
  }

  .container::after{
    position: absolute;
    content: ' ';
    width: 2px;
    height: 100%;
    background-image: linear-gradient(to bottom,rgb( 106, 6, 236),rgb( 220, 0, 240));
  }

  .container ul{
    list-style: none;
  }

  .container ul li{
    width: 50%;
    height: auto;
    padding: 15px 20px;
    background-color: #fff;
    box-shadow: 1px 1px 25px rgba( 0, 0, 0, 0.384);
    border-radius: 10px;
    margin-bottom: 30px;
    z-index: 99;
    position: relative;
  }

  .container ul li:nth-child(odd){
    float: left;
    clear: right;
    transform: translateX(-30px);
    text-align: right;
  }
  .container ul li:nth-child(odd) .date{
    right: 20px;
  }

  .container ul li:nth-child(even){
    float: right;
    clear: left;
    transform: translateX(30px);
  }
  .container ul li:last-child{
    margin-bottom: 0px;
  }
  .container ul li .title{
    font-size: 20px;
    font-weight: 500;
    color: rgb( 106, 6, 236);

  }
  ul li p{
    font-size: 15px;
    color: #444;
    margin:7px 0;
    line-height: 23px;
  }
  ul li a{
    font-size: 15px;
    color: rgb( 106, 6, 236);
    text-decoration: none;
  }

  ul li .date{
    position: absolute;
    top: -40px;
    width: 185px;
    height: 35px;
    border-radius: 20px;
    color: #fff;
    background-image: linear-gradient(to right,rgb( 106, 6, 236),rgb( 220, 0, 240));
    display: grid;
    place-items: center;
    font-size: 14px;

  }
  .container ul li .circle{
    width: 30px;
    height: 30px;
    background-color: rgba(220,0,240,0.403);
    border-radius: 50%;
    position: absolute;
    top: 0;
  }
  .container ul li .circle::after{
    content: ' ';
    width: 15px;
    height: 15px;
    background-color: rgb(106,6,236);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }

  .container ul li:nth-child(odd) .circle{
    right: -30px;
    transform: translate(50% ,-50%);
  }

  .container ul li:nth-child(even) .circle{
    left: -30px;
    transform: translate(-50% ,-50%);
  }

  @media screen and (max-width: 936px){
    .container{
      width: 85%;
    }
  }

  @media screen and (max-width: 933px){
    .container{
      width: 80%;
      transform: translateX(15px);
    }
    .container ul::after{
      left: -30px;
    }
    .container ul li {
      width: 100%;
      float: none;
      clear: none;
      margin-bottom: 80px;
    }

    .container ul li:nth-child(odd){
      transform: translate(0);
      text-align: left;
    }
    .container ul li:nth-child(odd) .date{
      left: 20px;
    }
    .container ul li:nth-child(odd) .circle{
      left: -30px;
      transform: translate(-50%,-50%);
    }

    .container ul li:nth-child(odd){
      transform: translate(0);
      text-align: left;
    }
  }

</style>
